#!/usr/bin/python
"""Starts Pyro3 nameserver.

Note: I am no longer using Pyro3

Based on http://code.google.com/p/raspberry-ui/source/browse/trunk/eventserver.py

"""
if __name__ == "__main__":
	from misc import misc
	import Pyro.naming

	hostname = misc.AskUser()
	nsport = 9089

	starter = Pyro.naming.NameServerStarter()
	print "Launching Pyro *3* Name Server"
	starter.start(hostname=hostname, nsport=nsport)
	starter.waitUntilStarted()
